<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
 

	<div class="main-title">
		<h2>每日精选 日期列表</h2>
	</div>
	<div> PS: 如果日期下没有精选视频 则不显示</div>
	<br/>
	<div class="cf">
		<div class="fl">
        	<a class="btn" href="{:U('index', ['month'=>$last])}">上个月</a>
        	<a class="btn" href="{:U('index', ['month'=>$next])}">下个月</a>
        </div>

        <!-- 高级搜索 -->
		<div class="search-form fr cf">
			 
		</div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="table table-bordered">
    <thead>
        <tr>
		<th class="">日期</th>
		<th class="">视频数量</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="list">
		<volist name="list" id="vo">
		<tr>
			<td >
				{$vo.date}
			</td>
			<td >
				{$vo.count}
			</td>
		
			<td>
				<a class="btn btn-default btn-xs" title="详细" href="{:U('sort?date='.$vo['date'])}"><i class="glyphicon glyphicon-pencil"></i></a>
				<a href="{:U('clear?date='.$vo['date'])}" title="清空" class="confirm ajax-get btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
            </td>
		</tr>
		</volist>
		<else/>
		<td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
    <div class="page">
        {$_page}
    </div>
    <div id="video-pre">
        <video controls="controls" autoplay="autoplay"></video>
    </div>
</block>

<block name="script">
	<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
 	<script type="text/javascript">

        //导航高亮
        highlight_subnav('{:U('index')}');

    </script>
</block>
